import {
  createSSRApp
} from 'vue'
import App from './App.vue'
// 国际化
import { setupRouter } from './router'
// test跟production不引入模拟数据
if (process.env.NODE_ENV === 'development') {
  import('./mock/index.ts')
}

export function createApp() {
  const app = createSSRApp(App)
  setupRouter(app)
  return {
    app
  }
}
